package com.qf.md.item.controller;

import com.qf.common.PageParam;
import com.qf.common.PageVO;
import com.qf.common.R;
import com.qf.md.item.service.MdItemService;
import com.qf.md.item.vo.ItemVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ==== 天道酬勤 ====
 *
 * @author douzhouzhou
 * @date 2025/3/3
 * <p>
 * ==== 行稳致远 进而有为 ====
 */
//第一次提交修改
@RestController
@RequestMapping("/md/item")
@Api(tags = "商品管理")
public class MdItemController {
    @Resource
    private MdItemService mdItemService;
    @GetMapping("/list")
    @ApiOperation(value = "分页查询商品信息")
    public R<PageVO<ItemVO>> findItemVO(PageParam pageParam) {
        PageVO<ItemVO> pageVO = mdItemService.findItemVO(pageParam);
        return R.ok(pageVO);
    }
}
